package cn.biplam.front.component.view.systemManage.task.modelimport;

import cn.biplam.common.paramters.DbsParam.Task_Type;
import cn.biplam.common.struc.SysStruc;
import cn.biplam.common.tools.TOOLS;
import cn.biplam.common.wrapper.ErrorMessage;
import cn.biplam.common.wrapper.Result;
import cn.biplam.common.wrapper.UserInfo;
import cn.biplam.front.callback.CallBack;
import cn.biplam.front.html.base.HtmlWindow;
import cn.biplam.front.template.base.Text;

/**
 * 模型对象导入，处理字段绑定器
 * @author XiaoRuxing 2009-6-22下午03:59:24
 * @version 1.0
 */
public class ModelImportTaskTypeCallBack implements CallBack{

	public HtmlWindow[] getGroup(Result data, String homeUrl, UserInfo mUser)
			throws ErrorMessage {
		HtmlWindow[] opetator=new HtmlWindow[1];
		
		/** 处理信息 */
		String type = data.getString(SysStruc.TaskStruc.TASK_TYPE);
		if(Task_Type.Model_Import.toString().equals(type)){
			type = "模型导入任务";
		}else if(Task_Type.DbSearch.toString().equals(type)){
			type = "数据探查任务";
		}
		opetator[0]= new Text(type).get(); 
		opetator[0].setLength(TOOLS.getTextLength(type));
		return opetator;
	}

}
